package com.xsmart.common.entity;

public class EcomException extends Exception {
    private int result;

    public EcomException(int result, String message) {
        super(message);
        setResult(result);
    }

    public EcomException(int result, String message, Throwable cause) {
        super(message, cause);
        setResult(result);
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }
}
